<script id="item_tpl" type="text/html">
<%for(var i=0;i<data.length;i++){%>
<%var $c=data[i];%>
<div class="item">
	<div class="g-sd1">
		 
		<a href="/index.php?m=news&a=home&userid=<%=$c.userid%>"><img src="<%=images_site($c.user_head)%>.100x100.jpg">   				 
		<span class="nick"><%=$c.nickname%></span>
		</a>
		<div class="follow js-news-follow" userid="<%=$c.userid%>"><%if($c.isfollow){%>已关注<%}else{%>关注<%}%></div>
	</div>
	<div class="g-mn1">
		<div class="g-mn1c">
			<div class="con"><%=$c.content%></div>
			<%if($c.fromid>0){%>
			<div class="frombox">
				<div class="con">@<%=$c.from_news.nickname%>: <%=$c.from_news.content%> 
				</div>
				<div class="pics js-thumb-item">
				 
				<%if($c.from_news.imgsdata){%>	
				<%for(var $j=0;$j<$c.from_news.imgsdata.length;$j++){%>
				<%var $p=$c.from_news.imgsdata[$j]%>	
				<div class="img ">
					<img class="js-thumb" v="<%=images_site($p)%>" src="<%=images_site($p)%>.100x100.jpg">
				</div>
				<%}%>
				<%}%>
				<div class="clearfix"></div>
			</div>
			</div>
			<%}%>
	<div class="pics js-thumb-item">
		 
		<%for(var j=0;j<$c.imgsdata.length;j++){%>
			<%var $p=$c.imgsdata[j];%>
		<div class="img ">
			<img class="js-thumb" v="<%=images_site($p)%>" src="<%=images_site($p)%>.100x100.jpg">
		</div>
		<%}%>
		<div class="clearfix"></div>
	</div>
	<div class="tools">
		<span class="time"><%=timeago($c.dateline)%></span>
		<span class="spread js-zhuan" content="<%if($c.fromid){%><%=$c.content%><%}%>" newsid="<%if($c.fromid){%><%=$c.fromid%><%}else{%><%=$c.newsid%><%}%>">转发</span>
		<div class="tan js-tan" newsid=<%=$c.newsid%> ><img src="<?php echo $this->_var['skins']; ?>img/icon_news_tan.png">
		 
		</div>
	</div>
	<div class="newslist-cmbox <%if($c.zans){%>active<%}%> <%if($c.cms){%>active<%}%>">
		<div class="zts <%if($c.zans){%>active<%}%>"  id="zts<%=$c.newsid%>">
			<i class="iconfont icon-love"></i>
			<%if($c.zans){%> 
			<%for(var j=0;j<$c.zans.length;j++){%>
				<%var $zan=$c.zans[j];%>
			<span id="news-zan-<%=$zan.id%>"><%=$zan.nickname%></span>
			<%}%>
			<%}%>
		</div>
		<div class="cms <%if($c.cms){%>active<%}%>" id="cms<%=$c.newsid%>">
		 	<%if($c.cms){%>
			<%for(var j=0;j<$c.cms.length;j++){%>
				<%var $cm=$c.cms[j];%>
			<div class="cm js-cm-btn" v-newsid="<%=$cm.newsid%>" v-id=<%=$cm.id%> v-nick="@<%=$cm.nickname%> " id="news-cm-<%=$cm.id%>">
				<span class="cm-nick"><%=$cm.nickname%></span>:
				<%=$cm.content%>
			</div>
			<%}%>
			<%}%>
		</div>
	</div>
		</div>
	</div>
	    			
</div>	

<%}%>

</script>